package cn.chencaiju.day07;

import org.junit.Test;

public class ObjectTest {
	@Test public void testObject() {
		MyObject obj=new MyObject();
		obj.setName("我谈的对象");
		obj.setId(887477L);
		obj.setFlag(true);
		System.out.println(obj.toString());
		MyObject o=new MyObject();
		o.setName("我谈的对象！");
		o.setId(887477L);
		o.setFlag(true);		
		System.out.println(o==obj);
		System.out.println(o.equals(obj));
	}
	@Test public void test() {
		char ch='M';
		System.out.println((int)ch);
		int i=88,j=74,k=77;
		System.out.println(Integer.toBinaryString(i)+ ' '+Integer.toBinaryString(j)+" "+Integer.toBinaryString(k));
	}
}
